package com.gjw.coupon.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 结算信息
 * 1. userId
 * 2. 商品信息（列表）
 * 3. 优惠券列表
 * 4. 结算结果金额
 *
 * @author gjw
 * @since 2020/7/17 16:43
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SettlementInfo {


    private Long userId;
    private List<CouponAndTemplateInfo> couponAndTemplateInfos;
    private List<GoodsInfo> goodsInfos;

    /**
     * 是否使结算生效，即核销
     */
    private Boolean employ;

    /**
     * 结果结算金额
     */
    private Double cost;


    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class CouponAndTemplateInfo {
        private Integer id;

        private CouponTemplateSDK template;
    }


}
